<?php



class ContactSubcontactMapBuilder implements MapBuilder {

	
	const CLASS_NAME = 'lib.model.map.ContactSubcontactMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap(ContactSubcontactPeer::DATABASE_NAME);

		$tMap = $this->dbMap->addTable(ContactSubcontactPeer::TABLE_NAME);
		$tMap->setPhpName('ContactSubcontact');
		$tMap->setClassname('ContactSubcontact');

		$tMap->setUseIdGenerator(false);

		$tMap->addForeignPrimaryKey('PARENT_CONTACT_IDEN', 'ParentContactIden', 'VARCHAR' , 'contact', 'IDEN', true, 20);

		$tMap->addForeignPrimaryKey('CHILD_CONTACT_IDEN', 'ChildContactIden', 'VARCHAR' , 'contact', 'IDEN', true, 20);

	} 
} 